package com.hyt.it.ogt.ykcj.common.constant;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @Author chentb
 * @Date 2021/6/21 14:54
 */

public class ImportFieldConstants {

    // 成绩信息列
    private static Map<String,String> gradeFieldMap = new LinkedHashMap<>();

    // 科目成绩信息列
    private static Map<String,String> subjectGradeFieldMap = new LinkedHashMap<>();

    //公务员考试职位信息列
    private static Map<String,String> postFieldMap = new LinkedHashMap<>();

    //公务员职位非空字段
    private static String postNotNullField;

    //公务员字典字段
    private static String postDirctField;

    static {

        // 成绩信息列map
        gradeFieldMap.put("BMXH","registrationNo");// 报名序号
        gradeFieldMap.put("DAH","archivesNo");// 档案号/准考证号
        gradeFieldMap.put("JBDM","levelCode");// 级别代码
        gradeFieldMap.put("KMXH","subjectNo");// 科目序号
        gradeFieldMap.put("XB","examineeSex");// 性别
        gradeFieldMap.put("KSXM","examineeName");// 考生姓名
        gradeFieldMap.put("ZJHM","examineeIdCode");// 证件号码
        gradeFieldMap.put("ZJLX","examineeIdType");// 证件类型
        gradeFieldMap.put("ZYDM","professionCode");// 专业代码
        gradeFieldMap.put("PASSYEAR","passYear");// 全科通过年份
        gradeFieldMap.put("PASS","passFlag");// 全科通过标记
        gradeFieldMap.put("DQ","area");// 地区

        // 科目成绩信息列map
        subjectGradeFieldMap.put("PASS","passYear");// 通过年份
        subjectGradeFieldMap.put("KM_","subjectId");// 科目
        subjectGradeFieldMap.put("KH_","examineeNo");// 考号
        subjectGradeFieldMap.put("CJ_","examineeScore");// 成绩
        subjectGradeFieldMap.put("CJLX_","gradeType");// 成绩类别
        subjectGradeFieldMap.put("WJLBM_","violationTypeCode");// 违纪类别码
        subjectGradeFieldMap.put("CLJGM_","violationResultCode");// 违纪处理结果码
        subjectGradeFieldMap.put("PASS_","passFlag");// 通过标记

        //公务员考试职位列map
        postFieldMap.put("序号","xh");
        postFieldMap.put("职位代码","zwdm");
        postFieldMap.put("单位代码","dwdm");
        postFieldMap.put("单位名称","dwmc");
        postFieldMap.put("用人部门","yrbm");
        postFieldMap.put("机构性质","jgxz");
        postFieldMap.put("职位名称","zwmc");
        postFieldMap.put("类别","lb");
        postFieldMap.put("职位层级","zwcj");
        postFieldMap.put("职位类别","zwlb");
        postFieldMap.put("职位简介","zwjj");
        postFieldMap.put("参加考试层级","cjkscj");
        postFieldMap.put("招考人数","zkrs");
        postFieldMap.put("学历要求","xlyq");
        postFieldMap.put("学位要求","xwyq");
        postFieldMap.put("专业要求","zyyq");
        postFieldMap.put("政治面貌","zzmm");
        postFieldMap.put("是否组织专业能力测试","sfzzzynlcs");
        postFieldMap.put("面试人员比例","msrybl");
        postFieldMap.put("招考男女人数","zknnrs");
        postFieldMap.put("基层工作年限","jcgznx");
        postFieldMap.put("咨询电话","zxdh");
        postFieldMap.put("单位网站","dwwz");
        postFieldMap.put("工作地点","gzdd");
        postFieldMap.put("落户地点","lhdd");
        postFieldMap.put("备注","remark");

        postNotNullField = "单位代码,单位名称，参加考试层级，职位代码，职位名称，类别，职位层级，职位类别，招考人数，是否组织专业能力测试，面试人员比例";
        postDirctField = "机构性质，参加考试层级，类别，职位层级，职位类别,是否组织专业能力测试";

    }

    public static String getPostNotNullField(){
        return postNotNullField;
    }

    public static Map<String, String> getGradeFieldMap() {

        return gradeFieldMap;
    }

    public static Map<String, String> getSubjectGradeFieldMap() {
        return subjectGradeFieldMap;
    }

    public static Map<String,String> getPostFieldMap()
    {
        return postFieldMap;
    }

    public static String getPostDirctField() {
        return postDirctField;
    }

    public static void setPostDirctField(String postDirctField) {
        ImportFieldConstants.postDirctField = postDirctField;
    }
}
